package com.leetao.dingtalk.core.service;

import com.leetao.dingtalk.core.domain.MessageCorpconversation;
import com.leetao.dingtalk.core.domain.rest.Rest;
import com.taobao.api.ApiException;

/**
 * 钉钉消息通知
 * @author 菅江晖
 * @date 2021/5/24 - 14:26
 */
public interface DingTalkNotificationService {


    /**
     * 向所有人发送工作通知消息
     * @param content 消息内容
     */
    Rest<MessageCorpconversation> sendJobNotificationTextMessagesToEveryone(String content) throws ApiException;

    Rest<MessageCorpconversation> sendJobNotificationTextMessagesToDeptIds(String content, String...deptIds) throws ApiException;
}
